<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!-- http://62.108.18.138:8080/Prj3-4Pin/index.jsp //-->
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- om de 3 sec controleren of pas is ingevoerd. //-->
    <meta http-equiv="refresh" content="3;url=index.jsp" />
    <%
          //Check of de Pas is ingevoerd
          if (pin.IsIngevoerd.ingevoerd == true) {
            //Ja, pas is ingevoerd.
            //Doorsturen naar code.jsp, om de pincode in te voeren.
            //Redirect
            response.sendRedirect("code.jsp");
            //Als de redirect niet werkt, de meta-refresh.
            out.println("<meta http-equiv=\"refresh\" content=\"0;url=code.jsp\" />");
          } else {
            //Pas is niet ingevoerd...
          }
    %>
    <title>Lucky Bank</title>
    <link rel="stylesheet" type="text/css" href="bank.css" />
  </head>
  <body>
    <table width="100%" id="hoogtabel" border="0"><tr><td valign="top">
          <!-- Logo (=plaatje + Tekst) //-->
          <table border="0"><tr><td><img src="globe.jpeg" alt="plaatje"><th><h1>Lucky Bank</h1></tr></table>
          <br />
      </td></tr>
      <!-- Einde Logo //-->
      <!-- Via CSS de class groot doen, snappie? //-->
      <tr valign="center"><td>
          <div class="groot">Voer uw Pas in AUB</div><br />
          <small><a href="testPas.jsp">(doorgaan met virtuele test-pas)</a></small>
      </td></tr>
      <tr valign="bottom"><td>
          <hr />
          <!-- Knoppen //-->
          <div align="center">
            <!-- 2 knoppen//-->
            <table><tr><td><input type="button" class="knop" onclick="correctie()" value="Correctie"><input type="button" class="knop" onclick="stop()" value="Stop"></table>
            <!-- Getallen //-->
            <table>
              <tr><td><input type="button" class="knop" onclick="knop('1')" value="1"><td><input type="button" class="knop" onclick="knop('2')" value="2"><td><input type="button" class="knop" onclick="knop('3')" value="3">
              <tr><td><input type="button" class="knop" onclick="knop('4')" value="4"><td><input type="button" class="knop" onclick="knop('5')" value="5"><td><input type="button" class="knop" onclick="knop('6')" value="6">
              <tr><td><input type="button" class="knop" onclick="knop('7')" value="7"><td><input type="button" class="knop" onclick="knop('8')" value="8"><td><input type="button" class="knop" onclick="knop('9')" value="9">
              <tr><td><td><input type="button" class="knop" onclick="knop('0')" value="0"><td>
          </table></div>
      </td></tr>
    </table>
  </body>
</html>
